Object.assign({}, foo);
